'use strict';
module.exports = app => {
  const { BIGINT, STRING, DATE, TEXT } = app.Sequelize;
  return app.model.define('word_tpls', {
    word_id: {
      type: BIGINT,
      field: 'id',
      primaryKey: true,
      autoIncrement: true,
    },
    tort_word_id: BIGINT,
    word: TEXT,
    source: STRING(30),
    hoder: TEXT,
    status: STRING(10),
    app_data: DATE,
  },
  {
    // indexes: [
    //     {
    //         name: 'tort_word_id',
    //         fields: ['tort_word_id'],
    //     }
    // ],
    underscored: true,
    paranoid: true,
  });
};
